#coding=utf-8

"""
  全局配置,
"""

JWT_SECRET = 'vQHEA6N9WKIUYFwfXKwXupfRQzZl0OmR'
DEFAULT_RECOMEND_DB_NAME = 'test'
DEFAULT_SUBSCRIBE_DB_NAME = 'test'
DEFAULT_USER_DB_NANME = 'test'
REDIS_PREFIX = 'user_module'

# 数据库连接池配置
DB_SETTING_DICT={
    "online" : {
        "type": "mysql",
        "conf": {
            "host": "hummingbird.mysqldb.chinacloudapi.cn",
            "user": "hummingbird%demopp",
            "pass": "Demopp1309",
            "db": "test",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
    "test_wby" : {
        "type": "mysql",
        "conf": {
            "host": "hummingbird.mysqldb.chinacloudapi.cn",
            "user": "hummingbird%demopp",
            "pass": "Demopp1309",
            "db": "test_wby",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
    "fengniaool" : {
        "type": "mysql",
        "conf": {
            "host": "139.219.236.33",
            "user": "bird",
            "pass": "demopp",
            "db": "hummingbird",
            "port": 63307,
            "max": 1,
            "min": 1
        }
    },
    "test" : {
        "type": "mysql",
        "conf": {
            "host": "hummingbird.mysqldb.chinacloudapi.cn",
            "user": "hummingbird%demopp",
            "pass": "Demopp1309",
            "db": "test",
            "port": 3306,
            "max": 4,
            "min": 1
        }
    },
    'invest_trace': {
        "type": "mysql",
        "conf": {
            "host": "internalreferenceapps.mysqldb.chinacloudapi.cn",
            "user": "internalreferenceapps%poorapps",
            "pass": "demopp.in1309",
            "db": "invest_trace",
            "port": 3306,
            "max": 2,
            "min": 1
        }
    },
}
REDIS_SETTING = {
    'memory':{
        'host':'localhost',
        'port': 6001,
        'db': 8
    },
    'auth':{
        'host':'localhost',
        'port': 6001,
        'db': 7
    }
}
